/**
 * 
 */
package edu.ou.cs.youming.jaxb.types;

import java.util.HashMap;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Youming Lin
 * 
 */
@XmlRootElement(name = "Feature")
public final class Feature {
	@XmlElement(name = "id")
	public final long id;

	@XmlElement(name = "location")
	public final String location;

	@XmlElement(name = "frequencies")
	public final HashMap<String, Integer> frequencies;

	protected Feature() {
		id = 0l;
		location = null;
		frequencies = null;
	}

	public Feature(final long id, final String location,
			final HashMap<String, Integer> frequencies) {
		this.id = id;
		this.location = location;
		this.frequencies = frequencies;
	}
}